/**
 * 
 */
package com.disys.database.migration;

import java.util.HashMap;
import java.util.Locale;
import java.util.Map;

/**
 * @author Ubaid Raja
 *
 */
public class FetchISOCountryName {

	public static void main(String[] args) throws InterruptedException {
	    Map<String, String> countries = new HashMap<String, String>();
	    for (String iso : Locale.getISOCountries()) {
	        Locale l = new Locale("", iso);
	        countries.put(l.getDisplayCountry(), iso);
	    }

	    System.out.println(countries.get("Switzerland"));
	    System.out.println(countries.get("Andorra"));
	    System.out.println(countries.get("Japan"));
	    System.out.println(countries.get("United States of America"));
	}
}
